
<!-- Start of first page -->
<div data-role="page">

	<div data-role="header" data-theme="b">
		<h1>账户管理</h1>
		<a href="#" data-icon="back" onclick="history.go(-1);">返回</a>
		<?php echo CHtml::link("主页",array("site/index"),array("data-icon"=>"home"))?>
	</div>
	<!-- /header -->
	<div data-role="footer">
		<div data-role="navbar" data-theme="e" >
			<ul>	
				<li><?php echo CHtml::link("账户登录",array("site/login"),array("data-icon"=>"star","data-theme"=>"e"))?></li>			
				<li><?php echo CHtml::link("账户注册",array("site/register"),array("data-icon"=>"plus","data-theme"=>"b"))?></li>
				<li><?php echo CHtml::link("密码找回",array("site/findpass"),array("data-icon"=>"search","data-theme"=>"b"))?></li>
			</ul>
		</div><!-- /navbar -->
	</div><!-- /footer -->
	<div data-role="content">
	
		<h2>登录</h2>
		
		<div class="form">
		<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'login-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>true,
		),
	'htmlOptions'=> array(
		"data-ajax"=>"false",
		)
		)); ?>
			<div>
				<?php echo $form->error($model,'username'); ?>
				<?php echo $form->error($model,'password'); ?>
			</div>
			<table style='width: 90%'>
				<tr>
					<td width="90px"><span class='labelspan'>用户名<span
						style='color: #c00'>*</span></span>
					</td>
					<td><?php echo $form->textField($model,'username'); ?></td>
				</tr>
				<tr>
					<td><span class='labelspan'>密码<span style='color: #c00'>*</span> </span>
					</td>
					<td><?php echo $form->passwordField($model,'password'); ?></td>
				</tr>
				<!--
				<tr>
					<td><?php echo $form->checkBox($model,'rememberMe',array("width"=>"80px")); ?></td>
					<td><?php echo $form->label($model,'rememberMe'); ?></td>
					<td><?php echo $form->error($model,'rememberMe'); ?></td>
				</tr>
				-->
				<tr>
					<td colspan='3'><?php echo CHtml::submitButton('登陆',array("data-inline"=>"true")); ?>
					</td>
				</tr>
			</table>

			<?php $this->endWidget(); ?>
		</div>
		<!-- form -->
	</div>
	<!-- /content -->

	<?php $this->renderPartial("//site/footer")?>
	<!-- /footer -->
</div>
<!-- /page -->
